#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
#include<string.h>
#include<assert.h>
int MyStrcmp(const char* str1, const char* str2)
{
	assert(str1 && str2);
	char* s1 = str1;
	char* s2 = str2;
	while (*s1 == *s2)
	{
		if (*s1 == '\0')
		{
			return 0;
		}
		s1++;
		s2++;
	}
	if (*s1 > *s2)
	{
		return 1;
	}
	else
	{
		return -1;
	}
}
int main()
{
	printf("%d\n", MyStrcmp("abcd", "abfd"));
	printf("%d\n", MyStrcmp("abcd", "abbd"));
	printf("%d\n", MyStrcmp("abcd", "abcd"));
	return 0;
}